//
//  ResignTableViewCell.m
//  Vpay
//
//  Created by 伟大大 on 2018/9/28.
//  Copyright © 2018年 丁伟佳. All rights reserved.
//

#import "ResignTableViewCell.h"
#import "UILabel+StringFrame.h"
@implementation ResignTableViewCell {
    CGSize titleSize;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self = [[[NSBundle mainBundle]loadNibNamed:@"ResignTableViewCell" owner:nil options:nil]lastObject];
    }
    
    return self;
}

- (void)SetCellInfo:(NSMutableDictionary *)dic
{
    SLog(@" 传过来的DIC = %@",dic);
    
    self.Country_code_label.text = dic[@"code"];

    titleSize = [self.Country_code_label boundingRectWithSize:CGSizeMake(0, self.Country_code_label.frame.size.height)];
    self.Country_code_label.frame = CGRectMake(self.Country_code_label.frame.origin.x, self.Country_code_label.frame.origin.y, titleSize.width, self.Country_code_label.frame.size.height);
    
    self.spliteView.frame = CGRectMake(self.Country_code_label.frame.origin.x+titleSize.width+5*theApp.autoSizeScaleX, self.spliteView.frame.origin.y, 1, self.spliteView.frame.size.height);
    
    self.Country_name_label.text = dic[@"country"];
    self.Country_name_label.frame = CGRectMake(self.spliteView.frame.origin.x+6*theApp.autoSizeScaleX, self.Country_name_label.frame.origin.y, self.Country_name_label.frame.size.width, self.Country_name_label.frame.size.height);
    
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


@end
